<?php
include 'hero.php';
include 'equip.php';
include 'heroCreate.php';
include 'strawshoes.php';
include 'helmet.php';

//什么装备都没有
$hero = new HeroCreate();
$hero->display();

//穿上旧草鞋
$strawshoes = new Strawshoes();
$strawshoes->wear($hero);
$strawshoes->display();

//戴上头盔
$helmet = new Helmet();
$helmet->wear($hero);
$helmet->display();


